<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateResumesInfosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('resumes_infos', function (Blueprint $table) {
            $table->increments('id');
            $table->string('resume_id')->comment('简历编号');
            $table->string('username')->nullable()->comment('姓名');
            $table->string('sex')->nullable()->comment('性别');
            $table->string('political_landscape')->nullable()->comment('政治面貌');
            $table->string('examination_situation')->nullable()->comment('婚育情况');
            $table->string('national')->nullable()->comment('民族');
            $table->string('constellation')->nullable()->comment('星座');
            $table->string('chinese_zodiac')->nullable()->comment('生肖');
            $table->string('weight')->nullable()->comment('体重');
            $table->string('height')->nullable()->comment('身高');
            $table->string('native_place')->nullable()->comment('籍贯');
            $table->string('mobile_phone')->nullable()->comment('联系方式');
            $table->string('wechat_id')->nullable()->comment('微信号');
            $table->string('identification_number')->nullable()->comment('身份证号码');
            $table->string('arrival_time')->nullable()->comment('到岗时间');
            $table->string('education_background')->nullable()->comment('学历');
            $table->string('degree')->nullable()->comment('学位');
            $table->string('professional')->nullable()->comment('专业');
            $table->string('current_residential_address')->nullable()->comment('现居住地点');
            $table->string('emergency_contact')->nullable()->comment('紧急联系人姓名');
            $table->string('emergency_contact_number')->nullable()->comment('紧急联系人电话');
            $table->timestamps();

            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('resumes_infos');
    }
}
